<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<%@ include file="/WEB-INF/views/include/head.jsp"%>
</head>
<script type="text/javascript">
	function tupian(idt) {
		var nametu = "xiaotu" + idt;
		var tp = document.getElementById(nametu);
		tp.src = "${ctxStatic}/images/ico05.gif";//图片ico04为白色的正方形

		for (var i = 1; i < 35; i++) {
			if (i != idt * 1) {
				var tp2 = document.getElementById('xiaotu' + i);
				if (tp2 != undefined) {
					tp2.src = "${ctxStatic}/images/ico06.gif";
				}//图片ico06为蓝色的正方形
			}
		}
	}

	function list(idstr) {
		var name1 = "subtree" + idstr;
		var name2 = "img" + idstr;
		var objectobj = document.all(name1);
		var imgobj = document.all(name2);

		//alert(imgobj);

		if (objectobj.style.display == "none") {
			for (var j = 1; j < 10; j++) {
				var name3 = "img" + j;
				var name = "subtree" + j;
				var o = document.all(name);
				if (o != undefined) {
					o.style.display = "none";
					var image = document.all(name3);
					//alert(image);
					image.src = "${ctxStatic}/images/ico04.gif";
				}
			}
			objectobj.style.display = "";
			imgobj.src = "${ctxStatic}/images/ico03.gif";
		} else {
			objectobj.style.display = "none";
			imgobj.src = "${ctxStatic}/images/ico04.gif";
		}
	}
</script>

<body>
	<table width="198" border="0" cellpadding="0" cellspacing="0" class="left-table01">
		<tr>
			<TD>
				<table width="100%" border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td width="207" height="55" background="${ctxStatic}/images/nav01.gif">
							<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
								<tr>
									<td width="25%" rowspan="2"><img src="${ctxStatic}/images/ico02.gif" width="35" height="35" /></td>
									<td width="75%" height="22" class="left-font01">您好，<span class="left-font02">${username}</span></td>
								</tr>
								<tr>
									<td height="22" class="left-font01">[&nbsp;<a href="${ctx}/sys/logout" target="_top" class="left-font01">退出</a>&nbsp;]
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table> <!-- 师傅管理开始 -->
				<TABLE width="100%" border="0" cellpadding="0" cellspacing="0" class="left-table03">
					<tr>
						<td height="29">
							<table width="85%" border="0" align="center" cellpadding="0" cellspacing="0">
								<tr>
									<td width="8%"><img name="img8" id="img8" src="${ctxStatic}/images/ico04.gif" width="8" height="11" /></td>
									<td width="92%"><a href="javascript:" target="mainFrame" class="left-font03" onClick="list('8');">师傅管理</a></td>
								</tr>
							</table>
						</td>
					</tr>
				</TABLE>
				<table id="subtree8" style="DISPLAY: none" width="80%" border="0" align="center" cellpadding="0" cellspacing="0" class="left-table02">
					<tr>
						<td width="9%" height="20"><img id="xiaotu20" src="${ctxStatic}/images/ico06.gif" width="8" height="12" /></td>
						<td width="91%"><a href="${ctx}/ShiFu/add" target="mainFrame" class="left-font03">添加师傅</a></td>
					</tr>
					<tr>
						<td width="9%" height="21"><img id="xiaotu21" src="${ctxStatic}/images/ico06.gif" width="8" height="12" /></td>
						<td width="91%"><a href="${ctx}/ShiFu/list" target="mainFrame" class="left-font03">师傅列表查看</a></td>
					</tr>
				</table> <!-- 师傅管理结束 --> <!-- 品牌管理开始 -->
				<TABLE width="100%" border="0" cellpadding="0" cellspacing="0" class="left-table03">
					<tr>
						<td height="29">
							<table width="85%" border="0" align="center" cellpadding="0" cellspacing="0">
								<tr>
									<td width="8%"><img name="img7" id="img7" src="${ctxStatic}/images/ico04.gif" width="8" height="11" /></td>
									<td width="92%"><a href="javascript:" target="mainFrame" class="left-font03" onClick="list('7');">品牌管理</a></td>
								</tr>
							</table>
						</td>
					</tr>
				</TABLE>
				<table id="subtree7" style="DISPLAY: none" width="80%" border="0" align="center" cellpadding="0" cellspacing="0" class="left-table02">
					<tr>
						<td width="9%" height="20"><img id="xiaotu17" src="${ctxStatic}/images/ico06.gif" width="8" height="12" /></td>
						<td width="91%"><a href="${ctx}/PingPai/add" target="mainFrame" class="left-font03" onClick="tupian('17');">品牌添加</a></td>
					</tr>
					<tr>
						<td width="9%" height="20"><img id="xiaotu18" src="${ctxStatic}/images/ico06.gif" width="8" height="12" /></td>
						<td width="91%"><a href="${ctx}/PingPai/list" target="mainFrame" class="left-font03" onClick="tupian('18');">品牌列表查看</a></td>
					</tr>
				</table> <!-- 品牌管理结束 --> <!--  维修单管理开始    -->
				<table width="100%" border="0" cellpadding="0" cellspacing="0" class="left-table03">
					<tr>
						<td height="29"><table width="85%" border="0" align="center" cellpadding="0" cellspacing="0">
								<tr>
									<td width="8%" height="12"><img name="img2" id="img2" src="${ctxStatic}/images/ico04.gif" width="8" height="11" /></td>
									<td width="92%"><a href="javascript:" target="mainFrame" class="left-font03" onClick="list('2');">维修单管理</a></td>
								</tr>
							</table></td>
					</tr>
				</table>

				<table id="subtree2" style="DISPLAY: none" width="80%" border="0" align="center" cellpadding="0" cellspacing="0" class="left-table02">

					<tr>
						<td width="9%" height="20"><img id="xiaotu7" src="${ctxStatic}/images/ico06.gif" width="8" height="12" /></td>
						<td width="91%"><a href="${ctx}/WeiXiu/add" target="mainFrame" class="left-font03" onClick="tupian('7');">维修单添加</a></td>
					</tr>
					<tr>
						<td width="9%" height="20"><img id="xiaotu9" src="${ctxStatic}/images/ico06.gif" width="8" height="12" /></td>
						<td width="91%"><a href="${ctx}/WeiXiu/list?params.wxZhuangTai=1" target="mainFrame" class="left-font03" onClick="tupian('9');">未维修单列表查看</a></td>
					</tr>
					<tr>
						<td width="9%" height="30"><img id="xiaotu10" src="${ctxStatic}/images/ico06.gif" width="8" height="12" /></td>
						<td width="91%"><a href="${ctx}/WeiXiu/list?params.wxZhuangTai=2" target="mainFrame" class="left-font03" onClick="tupian('10');">已维修单列表查看</a></td>
					</tr>
				</table> <!--  维修单管理结束    -->  
				
				<!--  安装单管理开始    -->
				<!-- 
				<table width="100%" border="0" cellpadding="0" cellspacing="0" class="left-table03">
					<tr>
						<td height="29"><table width="85%" border="0" align="center" cellpadding="0" cellspacing="0">
								<tr>
									<td width="8%" height="12"><img name="img3" id="img3" src="${ctxStatic}/images/ico04.gif" width="8" height="11" /></td>
									<td width="92%"><a href="javascript:" target="mainFrame" class="left-font03" onClick="list('3');">安装单管理</a></td>
								</tr>
							</table></td>
					</tr>
				</table>

				<table id="subtree3" style="DISPLAY: none" width="80%" border="0" align="center" cellpadding="0" cellspacing="0" class="left-table02">

					<tr>
						<td width="9%" height="20"><img id="xiaotu30" src="${ctxStatic}/images/ico06.gif" width="8" height="12" /></td>
						<td width="91%"><a href="${ctx}/AnZhuang/add" target="mainFrame" class="left-font03" onClick="tupian('30');">安装单添加</a></td>
					</tr>
					<tr>
						<td width="9%" height="20"><img id="xiaotu31" src="${ctxStatic}/images/ico06.gif" width="8" height="12" /></td>
						<td width="91%"><a href="${ctx}/AnZhuang/list?params.wxZhuangTai=1" target="mainFrame" class="left-font03" onClick="tupian('31');">未安装单列表查看</a></td>
					</tr>
					<tr>
						<td width="9%" height="30"><img id="xiaotu32" src="${ctxStatic}/images/ico06.gif" width="8" height="12" /></td>
						<td width="91%"><a href="${ctx}/AnZhuang/list?params.wxZhuangTai=2" target="mainFrame" class="left-font03" onClick="tupian('32');">已安装单列表查看</a></td>
					</tr>
				</table>
				 --> 
				<!--  安装单管理结束    -->  
				
				
				<!--用户管理开始-->
				<TABLE width="100%" border="0" cellpadding="0" cellspacing="0" class="left-table03">
					<tr>
						<td height="29">
							<table width="85%" border="0" align="center" cellpadding="0" cellspacing="0">
								<tr>
									<td width="8%"><img name="img9" id="img9" src="${ctxStatic}/images/ico04.gif" width="8" height="11" /></td>
									<td width="92%"><a href="javascript:" target="mainFrame" class="left-font03" onClick="list('9');">用户管理</a></td>
								</tr>
							</table>
						</td>
					</tr>
				</TABLE>
				<table id="subtree9" style="DISPLAY: none" width="80%" border="0" align="center" cellpadding="0" cellspacing="0" class="left-table02">
					<tr>
						<td width="9%" height="22"><img id="xiaotu22" src="${ctxStatic}/images/ico06.gif" width="8" height="12" /></td>
						<td width="91%"><a href="${ctx}/User/goEditPassword" target="mainFrame" class="left-font03" onClick="tupian('22');">修改密码</a></td>
					</tr>
					<!-- 管理员权限 -->
					<c:if test="${username == 'admin' }">
						<tr>
							<td width="9%" height="22"><img id="xiaotu22" src="${ctxStatic}/images/ico06.gif" width="8" height="12" /></td>
							<td width="91%"><a href="${ctx}/User/add" target="mainFrame" class="left-font03" onClick="tupian('22');">添加用户</a></td>
						</tr>
						<tr>
							<td width="9%" height="23"><img id="xiaotu23" src="${ctxStatic}/images/ico06.gif" width="8" height="12" /></td>
							<td width="91%"><a href="${ctx}/User/list" target="mainFrame" class="left-font03" onClick="tupian('23');">用户信息列表</a></td>
						</tr>
					</c:if>
				</table> <!-- 用户管理结束 -->
			</TD>
		</tr>

	</table>
</body>
</html>


